import { RouteRecordRaw } from 'vue-router';

export default {
  path: '/allorders',
  name: 'allorders',
  redirect: '/orders/serviceMarket ',
  component: () => import('@/layout/index.vue'),
  meta: {
    title: '订单管理',
    icon: 'el-icon-coin',
    sort: 3
  },
  children: [
    {
      path: '/allorders/serviceMarket',
      name: 'allOrderServiceMarket',
      component: () => import('@/views/orders/serviceMarket/index.vue'),
      meta: {
        title: '服务市场订单',
        icon: 'el-icon-school'
      }
    },
    {
      path: '/allorders/alipay',
      name: 'allOrderAlipay',
      component: () => import('@/views/orders/alipay/index.vue'),

      meta: {
        title: '支付宝订单',
        icon: 'el-icon-paperclip',
        roles: ['adminSp', 'admin']
      }
    }
  ]
} as RouteRecordRaw;
